<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); //
	include("function/function.php");
	include("_include.user.judge.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心</title>
<link rel="stylesheet" href="css/common.css"/>
<link rel="stylesheet" href="css/sq.css"/>
<script type="text/javascript" src="js/baidutongji.js"></script>
<script type="text/javascript" src="js/laydate/laydate.js"></script>
</head>
<body>
    <!--top-bar begin-->
	<? include("_include.top.topbar.php") ?>
    <!--top-bar end-->
    <!--banner begin-->
    <? include("_include.user.topbar.php")?>
    <!--banner end-->
    <!--member center-->
    <div class="member-box">
        <div class="content">
			<? include("_include.user.leftnav.php") ?>
            <div class="member-box-r">
                <div class="member-item1">
                    <div class="m-title">消息管理</div>
                    <?php include_once('_include.user.ordersearch.php');?>
                </div>
                <div class="member-basic">
                      <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
                        <tr>
                          <td align="center" bgcolor="#FFFFFF">消息ID</td>
                          <td align="center" bgcolor="#FFFFFF">消息名称</td>
                          <td align="center" bgcolor="#FFFFFF">消息内容</td>
                         
						  <td align="center" bgcolor="#FFFFFF">操作</td>
                        </tr>
						<?php
								mysql_query("update kboy_webad set webad_isread=1 where uid=$kboy_userid");
								$news_sql = "select * from  kboy_webad where uid=$kboy_userid  order by id desc";
								$news_rows = mysql_query($news_sql);
								while($news_rs = mysql_fetch_array($news_rows)){
						?>
                        <tr>
                          <td align="center" bgcolor="#FFFFFF"><?=$news_rs['id']?></td>
                          <td align="center" bgcolor="#FFFFFF"><?=$news_rs['webad_title']?></td>
						  <td align="center" bgcolor="#FFFFFF"><?=$news_rs['webad_content']?></td>
						  <td align="center" bgcolor="#FFFFFF">
						  <a href="user_xiaoxidel.php?action=del&id=<?=$news_rs['id'];?>"  onclick="return confirm('您确定要删除吗？');">删除</a>
						  </td>
                        </tr>
						<?php
						}
						?>
                      </table>
                </div>
            </div>
        </div>
    </div>
    <!--member center-->
    <!--foot begin-->
	<? include("_include.bottom.footbar.php") ?>
    <!--foot begin-->
    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="js/sq.js"></script>
</body>
</html>
